//import Vue from 'vue'
import Vuex from 'vuex'
// import * as actions from './actions'
// import * as getters from './getters'
import banner from './modules/banner'
import userInfo from './modules/userInfo'
import userAccount from './modules/userAccount'
import invest from './modules/invest'
import error from './modules/error'

// Vuex is auto installed on the web
if (WXEnvironment.platform !== 'Web') {
  Vue.use(Vuex)
}

const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  // actions,
  // getters,
  modules: {
    banner,
    userInfo,
    account: userAccount,
    invest,
    error
  },
  strict: debug
})
